package com.chonor.mall.domain;

import com.chonor.mall.model.CartItem;
import com.chonor.mall.model.MemberReceiveAddress;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 确认单信息封装
 * Created by macro on 2018/8/30.
 */
@Data
public class ConfirmOrderResult {
    //包含优惠信息的购物车信息
    private List<CartPromotionItem> cartPromotionItemList;
    //商品列表
    private List<CartItem> cartItemList;
    //默认地址
    private MemberReceiveAddress memberReceiveAddress;
    //用户收货地址列表
    private List<MemberReceiveAddress> memberReceiveAddressList;
    //用户可用优惠券列表
    private List<CouponHistoryDetail> couponHistoryDetailList;
    //积分使用规则
//    private IntegrationConsumeSetting integrationConsumeSetting;
    //会员持有的积分
    private Integer memberIntegration;
    //计算的金额
    private CalcAmount calcAmount;

    @Data
    public static class CalcAmount{
        //订单商品总金额
        private BigDecimal totalAmount;
        //运费
        private BigDecimal freightAmount;
        //活动优惠
        private BigDecimal promotionAmount;
        //积分减免
        private BigDecimal integrationAmount;
        //应付金额
        private BigDecimal payAmount;
    }
}
